import onnx
from onnxconverter_common import float16

def model_float_float16(onnx_src, onnx_dst):
    model = onnx.load(onnx_src)
    model_fp16 = float16.convert_float_to_float16(model)
    onnx.save(model_fp16, onnx_dst)



